angular.module('starter.controllers', [])

.controller('DashCtrl', ($scope) -> )

.controller 'OrdersCtrl', ($scope, $state, $ionicHistory,$ionicViewSwitcher) ->
    $scope.goBack = ->
        $ionicHistory.goBack()
    $scope.goDetail = ->
        $ionicViewSwitcher.nextDirection('forward')
        $state.go 'quickClean-detail'
